package tree;

public class Test {
    public static void main(String[] args) {
        binaryTree binaryTree=new binaryTree();
        binaryTree.TreeNode root=binaryTree.createTree();
        binaryTree.preOrder(root);
        System.out.println();
        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.postOrder(root);
        System.out.println();
        int ret=binaryTree.size(root);
        System.out.println("节点个数为："+ret);
        System.out.println("=========");
        int ret2=binaryTree.size(root);
        System.out.println("节点个数为："+ret2);
        System.out.print("中序遍历");
        binaryTree.levelOrder(root);
    }
}
